package com.bingxue.edu.management.shop.model.entity;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import com.bingxue.edu.framework.common.model.BusinessEntity;
import com.bingxue.edu.framework.common.validation.Code;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author panbo
 * @since 2024/11/12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("shop_activity")
public class Activity extends BusinessEntity {

    @Schema(description = "活动名称")
    @NotNull(message = "活动名称不能为空")
    private String name;

    @Schema(description = "活动编码")
    @Code
    @NotNull(message = "活动编码不能为空")
    private String code;

    @Schema(description = "活动描述")
    private String description;

    @Schema(description = "活动配置")
    private String config;

    @Schema(description = "状态")
    private CommonStatusEnum status;
}
